how to scan and display structure in c